package com.gjw.designpattern.factory.simpleFactory;

public class PhoneFactory {


    public Phone getPhone(String phoneType){
        if("三星".equals(phoneType)){
            return new SanXingPhone();
        }else if("华为".equals(phoneType)){
            return new HuaWeiPhone();
        }
        return null;
    }
}
